Skip to content

Conversation

@rbren
Copy link
Owner

@rbren rbren commented Jan 14, 2026

Summary

This PR adds a subtitle field to the list of feed fields, enabling the parser to automatically extract the <subtitle> element from RSS feeds.

Changes

  • lib/fields.js: Added 'subtitle' to the fields.feed array
  • index.d.ts: Added subtitle?: string; to the TypeScript Output interface for proper type definitions

Motivation

The subtitle field is a common RSS feed element that provides additional descriptive information about a feed. This change allows users to access this field without needing to configure custom fields.

Testing

All existing tests pass (38/38).

@rbren can click here to continue refining the PR

- Add 'subtitle' to the fields.feed array in lib/fields.js
- Add subtitle property to TypeScript Output interface in index.d.ts

Co-authored-by: openhands <[email protected]>
@rbren
Copy link
Owner Author

rbren commented Jan 14, 2026

@OpenHands please add an inline comment about these changes

@openhands-ai
Copy link

openhands-ai bot commented Jan 14, 2026

I'm on it! rbren can track my progress at all-hands.dev

Added comments to clarify that Atom feeds use <subtitle> for feed description.

Co-authored-by: openhands <[email protected]>
@openhands-ai
Copy link

openhands-ai bot commented Jan 14, 2026

I've added inline comments explaining the subtitle field changes and pushed them to the PR branch.

Summary of Changes

Checklist:

  • ✅ Added inline comment to lib/fields.js explaining the subtitle field
  • ✅ Added inline comment to index.d.ts explaining the subtitle field
  • ✅ Changes are concise and directly address the request
  • ✅ Changes pushed to feature/add-subtitle-feed-field branch

Changes made:

  • lib/fields.js: Added comment // Atom feeds use <subtitle> for feed description next to the subtitle field
  • index.d.ts: Added comment // Atom feeds use <subtitle> for feed description next to the subtitle type definition

The PR #294 has been updated with these inline comments to clarify that the <subtitle> element is commonly used in Atom feeds to provide feed descriptions.

View full conversation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants